import axios from "../utils/request.js"
let shopManagerId = window.localStorage.getItem("shopAdminId");
export default {
    //获取
    get: value =>
        axios
            .get("/services", {
                params: { adminId: shopManagerId, shopManagerId, ...value },
            })
            .then(function (response) {
                return response;
            }),
    //新增
    post: obj => axios.post("/services", { adminId: shopManagerId, ...obj }).then((res) => {
    }),
    //修改
    put: (id, obj) => axios.put("/services/" + id, obj),
    //删除
    delete: id => axios.delete("/services/" + id)
};
